<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/6/20 17:45
 */

namespace App\Transformers;

use App\Models\MedicalDispose;
use League\Fractal\TransformerAbstract;

class DisposeTransformer extends TransformerAbstract
{
    public function transform(MedicalDispose $dispose)
    {
        return [
            'id'                 => $dispose->id,
            'record_id'          => $dispose->record_id,
            'control_objectives' => $dispose->control_objectives,
            'advise'             => $dispose->advise,
            'inspection_plan'    => $dispose->inspection_plan,
            'schedule'           => $dispose->schedule,
            'medication'         => $dispose->medication,
            'cn_medication'      => $dispose->cn_medication,
            'signatures'         => $dispose->signatures,
            'remark'             => $dispose->remark,
        ];
    }
}